FROM pig4cloud/java:8-jre

MAINTAINER bulanla@outlook.com

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms128m -Xmx256m"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /pigx-auth

WORKDIR /xss-boot

EXPOSE 9999

ADD ././target/xss-boot.jar ./

CMD sleep 120;java $JAVA_OPTS -jar xss-boot.jar
